package com.ruoyi.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.app.domain.ShopProfession;
import com.ruoyi.app.domain.vo.ShopProfessionVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户信息Mapper接口
 * 
 * @author ruoyi
 * @date 2024-07-07
 */
public interface ShopProfessionMapper extends BaseMapper<ShopProfession> {


    /**
     * 获取分类信息
     * @param shopId
     * @return
     */
    @Select("select * from shop_profession sp INNER JOIN basic_profession bp ON sp.PROFESSION_ID = bp.ID AND bp.DEL_FLAG = 0 WHERE sp.DEL_FLAG = 0 AND SHOP_ID = #{shopId}")
    List<ShopProfessionVo> selectShopProfessionByShopId(@Param("shopId") String shopId);
}
